package org.paybiz.core.service.callback;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.paybiz.model.PayResultDO;

/**
 * 支付回调接口定义
 * @author nassir.wen
 * @date 2013-1-8上午9:42:32
 * @company: MSD. 
 * @copyright: Copyright (c) 2013
 */
public interface PayCallbackService{

    /**
     * 支付回调
     * @author nassir.wen
     * @date 2013-1-8上午9:48:18
     * @return
     */
    public abstract PayResultDO payCallback(HttpServletRequest request,HttpServletResponse response);
    
    /**
     * 发送异步通知结果到第三方
     * @author nassir.wen
     * @date 2013-1-9下午6:15:19
     * @param Response
     * @param result 0 为成功 1为失败
     */
    public abstract void sendAsynResult(HttpServletResponse response, int result);
}
